<?php
$roles=array(
    '1'=>'老师',
    '2'=>'内审'
);
$submit=array(
	'name'=>'submit',
	'class'=>'submit',
	'type'=>'submit',
	'value'=>'查询',
);
?>
<head>
    <?php $this->load->view('load_view'); ?>
</head>
<div class="col-wrap handin-wrap">
    <!--start col-->
    <div class="col handin">
        <div class="wrap-title">
            <p class="page-title">
                用户管理
            </p>
        </div>

        <p class="desc">
    	介绍：添加用户，或班级，对用户进行管理
        </p>
        <div class="itemtitle">
            <h3>操作类型</h3>
            <?php $this->load->view('admin/useroptions'); ?>
            <div class="clear"></div>
        </div>
        <?php
        $k=array(	array(
            'Mr.A',
            'abc@111.com',
            ),
            array(
            'Mr.B',
            'abc@111.com'
            ),
            array(
            'Mr.c',
            'abc@111.com'
            )
        );
        ?>
        <div class="search">
            <?php
                echo form_open();
                echo form_label('搜索用户组');
                echo form_dropdown('roles',$roles);
                echo form_input($submit);
                echo form_close();
            ?>
        </div>
        <form>
            <?php
            $tmpl = array (
                'table_open'          => '<table class="sortTable" id="sortTable" cellspacing="1">',
                'heading_row_start'   => '<thead><tr>',
                'heading_row_end'     => '</tr></thead>',
                'heading_cell_start'  => '<th><p>',
                'heading_cell_end'    => '</p></th>',
                'table_close'         => '</table>'
            );
            $data = array(
                array('Name', 'Color', 'Size'),
                array('Fred', 'Blue', 'Small'),
                array('Mary', 'Red', 'Large'),
                array('John', 'Green', 'Medium')
            );

            $this->table->set_template($tmpl);
            $this->table->set_heading('是否删除','姓名','Email','编辑用户');
            echo $this->table->generate($data);
            ?>
            <p class="control">
                <a id="selectAll" href="javascript:">全选</a>
                <a id="selectNone" href="javascript:">不选</a>
                <input type="submit" class="submit" value="删除？" />
            </p>
        </form>
    </div>
    <!--end col-->
</div>
<!--end col-wrap-->
<script>
    $('ul.selectNav li').eq(1).addClass('current');
    $(window.parent.document).find("ul.nav li a").removeClass("then");
    $(window.parent.document).find("a#usermanage").attr("class","then");
</script>
